package homework.clazz.Data4;

class Student extends Person
{
    private String department;
    public Student()
    {
        System.out.println("调用了学生类的构造方法Student()");
    }
    public void setDepartment(String dep)
    {
        department=dep;
        System.out.println("我是"+department +"的学生");
    }
}
